package io.github.definitlyevil.ziminmod.cif.armors;

import de.tr7zw.nbtapi.NBTCompound;
import de.tr7zw.nbtapi.NBTContainer;
import io.github.definitlyevil.customitemframework.BaseItem;
import io.github.definitlyevil.customitemframework.CIFItemInstance;
import org.bukkit.Material;

public class ZiMinGreenHat extends BaseItem {
    @Override
    public String getDisplayName(NBTCompound nbtCompound) {
        return "\u00a7a\u00a7l针男人绿帽子";
    }

    @Override
    public boolean isUnbreakable() {
        return false;
    }

    @Override
    public Material getModelMaterial() {
        return Material.LEATHER_HELMET;
    }

    @Override
    public NBTContainer generateItemNBT(CIFItemInstance instance, boolean isBlock) {
        NBTContainer container = super.generateItemNBT(instance, isBlock);
        NBTCompound display = container.getCompound("tag").getCompound("display");
        display.setInteger("color", 0x2d8c1f);
        return container;
    }

    @Override
    public boolean isBlock() {
        return false;
    }
}
